package com.cloud.crashdemo.app

import android.app.Application
import com.cloud.crashdemo.crash.CrashHandler

/**
 * @auth: njb
 * @date: 2024/11/18 22:56
 * @desc: 描述
 */
class CrashApp : Application() {

    companion object{
      val instance :CrashApp by lazy (LazyThreadSafetyMode.SYNCHRONIZED){
          CrashApp()
      }
    }

    override fun onCreate() {
        super.onCreate()
        val crashHandler = CrashHandler.getInstance()
        crashHandler.init(this)
    }


}